package java02;

import java.math.BigDecimal;
import java.util.Scanner;
public class Main05{
	
	public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    while(sc.hasNext()){
    	BigDecimal n1,n2;
    	n1=sc.nextBigDecimal();
    	n2=sc.nextBigDecimal();
    	System.out.println(n1.add(n2));
    	System.out.println(n1.multiply(n2));
    	
       }
	}
}
